import service from '../../utils/request';

//登录
export function  admin_login( payload = {} ){
    return service.get('/User/login',  { params:payload } )
}

// 告警规则页面接口

// 新增告警规则分页
export function  alarm_page(payload = {}){
    return service.get('/warningrule/queryAll',{ params:payload } )
}
// 新增告警规则新增
export function alarm_add(payload = {}){
    return service.post('/warningrule/add',  payload  )
}
// 单个删除
export function alarm_delete( payload = {} ){
    return service.delete('/warningrule/deleteById', { params:payload } )
}
// 全部删除
export function alarm_deleteall( payload = {} ){
    return service.delete('/warningrule/deletefew', { params:payload } )
}
// 编辑信息详情?？
export function alarm_edit( payload = {} ){
    return service.put('/warningrule/edit', payload )
}
// 获取单个数据 ？？
// /warningrule/queryById/{id}
export function alarm_queryByid(payload = {}){
    return service.get('/warningrule/queryById',{ params:payload } )
}

// 项目管理
// 新增
export function item_add(payload = {}){
    return service.post('/project/add',  payload  )
}
// 详情
export function item_edit( payload = {} ){
    return service.put('/project/edit', payload )
}
// 批量删除
export function item_deleall( payload = {} ){
    return service.delete('/project/deletefew', { params:payload } )
}
// 单个删除
export function item_del( payload = {} ){
    return service.delete('/project/deleteById', { params:payload } )
}
// 分页
export function item_page(payload = {}){
    return service.get('/project/queryAll',{ params:payload } )
}
// 单选

// 多选